package com.springmvc.web.controller;

import javax.servlet.http.HttpServletRequest;

import org.springframework.stereotype.Controller;
import org.springframework.web.context.request.RequestContextHolder;
import org.springframework.web.context.request.ServletRequestAttributes;

@Controller
public class BaseController {

	public HttpServletRequest getRequest(){
		
		HttpServletRequest request = ((ServletRequestAttributes)
				
				RequestContextHolder.getRequestAttributes()).getRequest();
		
		return request;
	}
}
